<template>
  <div>
    <Card class="card-progress-count-plaltf">
      <div class="card-header">
        <span>今日新增货主</span>
      </div>
      <div class="value">
        <span>
          {{ count.todayNewCompanyNum }}
        </span>
      </div>
      <div style="margin: 10px 0 7px 0; height: 2px;">
      </div>
      <!-- <Progress
        :percent="65"
        status="success"
        hide-info
        style="margin: 20px 0 7px 0"
      /> -->
      <div class="today">
        <span class="t">近15天新增量</span>
        <span class="v">{{ count.companyNum }}</span>
      </div>
    </Card>
  </div>
</template>

<script>
import { CountUp } from "countup.js";
import { userStatistics } from "@/api/index";
export default {
  name: "cardProgress",
  components: {},
  props: {
    count: {
      type: Object,
    },
  },
  data() {
    return {
      count: {},
    };
  },
  methods: {
    init() {
      if (this.count) {
        // new CountUp("countup4", this.count.todayNewUserNum).start();
      }
    },
  },
  mounted() {
    this.init();
  },
};
</script>
<style lang="less" scoped>
.card-progress-count-plaltf {
  height: 170px;
  .card-header {
    display: flex;
    height: 22px;
    align-items: center;
    justify-content: space-between;
    // color: rgba(0, 0, 0, 0.45);
    font-size: 16px;
    margin: 15px 0;
  }
  .value {
    height: 38px;
    margin-top: 4px;
    margin-bottom: 6px;
    overflow: hidden;
    color: rgba(0, 0, 0, 0.85);
    font-size: 30px;
    line-height: 38px;
    white-space: nowrap;
    text-overflow: ellipsis;
    word-break: break-all;
     span{
      color: #FFCC66;
    }
  }
  .today {
    margin-top: 8px;
    padding-top: 9px;
    border-top: 1px solid #e8e8e8;
    .v {
      margin-left: 8px;
      color: #33FF33;
    }
  }
}
</style>